# 导入urllib库：完成向服务器发送请求
import urllib.request

headers ={'User-Agent':''}

response = urllib.request.Request('http://www.baidu.com', headers=headers)
html = urllib.request.urlopen(response)
result=html.read()
print(result)

